# Contributor: Dmitry Zakharchenko <dmitz@disroot.org>
# Maintainer: Dmitry Zakharchenko <dmitz@disroot.org>
pkgname=nsxiv
pkgver=32
pkgrel=0
pkgdesc="Neo Simple X Image Viewer"
url="https://codeberg.org/nsxiv/nsxiv"
arch="all"
license="GPL-2.0-or-later"
options="!check" # no test suite
replaces="sxiv"
provides="sxiv=$pkgver-r$pkgrel"
makedepends="
	giflib-dev
	imlib2-dev
	libexif-dev
	libwebp-dev
	libx11-dev
	libxft-dev
	"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver-2.tar.gz::https://codeberg.org/nsxiv/nsxiv/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname"

prepare() {
	default_prepare
	ln -s config.def.h config.h
}

build() {
	make
}

package() {
	make PREFIX=/usr DESTDIR="$pkgdir" install-all
}

sha512sums="
67c63710d4f533c2e116456b2c0424c3ca86e0d9798371b167e4caca3e5582f2753de14ca870208dd47861394f05804450682cbe21b45be81d322517c2d8ee61  nsxiv-32-2.tar.gz
"
